.class Lcom/baidu/location/aj;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/baidu/location/d;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/baidu/location/aj$b;,
        Lcom/baidu/location/aj$a;
    }
.end annotation


# static fields
.field private static V:Ljava/lang/String;

.field private static Y:Ljava/lang/reflect/Method;

.field private static Z:Ljava/lang/reflect/Method;

.field private static a:Lcom/baidu/location/aj;

.field private static aa:Ljava/lang/reflect/Method;

.field private static ab:Ljava/lang/reflect/Method;

.field private static ac:Ljava/lang/reflect/Method;

.field private static ad:Ljava/lang/Class;

.field private static ae:J

.field private static af:I

.field private static ag:Z


# instance fields
.field private R:Landroid/telephony/TelephonyManager;

.field private S:Lcom/baidu/location/aj$a;

.field private T:Lcom/baidu/location/aj$a;

.field private U:Ljava/util/List;

.field private W:Lcom/baidu/location/aj$b;

.field private X:Z

.field private ah:Z

.field private ai:I

.field private aj:I


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const/4 v0, 0x0

    sput-object v0, Lcom/baidu/location/aj;->a:Lcom/baidu/location/aj;

    sput-object v0, Lcom/baidu/location/aj;->V:Ljava/lang/String;

    sput-object v0, Lcom/baidu/location/aj;->Y:Ljava/lang/reflect/Method;

    sput-object v0, Lcom/baidu/location/aj;->Z:Ljava/lang/reflect/Method;

    sput-object v0, Lcom/baidu/location/aj;->aa:Ljava/lang/reflect/Method;

    sput-object v0, Lcom/baidu/location/aj;->ab:Ljava/lang/reflect/Method;

    sput-object v0, Lcom/baidu/location/aj;->ac:Ljava/lang/reflect/Method;

    sput-object v0, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    const-wide/16 v0, 0xbb8

    sput-wide v0, Lcom/baidu/location/aj;->ae:J

    const/4 v0, 0x3

    sput v0, Lcom/baidu/location/aj;->af:I

    const/4 v0, 0x0

    sput-boolean v0, Lcom/baidu/location/aj;->ag:Z

    return-void
.end method

.method private constructor <init>()V
    .locals 3

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v2, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    new-instance v0, Lcom/baidu/location/aj$a;

    invoke-direct {v0, p0}, Lcom/baidu/location/aj$a;-><init>(Lcom/baidu/location/aj;)V

    iput-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iput-object v2, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iput-object v2, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    iput-object v2, p0, Lcom/baidu/location/aj;->W:Lcom/baidu/location/aj$b;

    iput-boolean v1, p0, Lcom/baidu/location/aj;->X:Z

    iput-boolean v1, p0, Lcom/baidu/location/aj;->ah:Z

    iput v1, p0, Lcom/baidu/location/aj;->ai:I

    iput v1, p0, Lcom/baidu/location/aj;->aj:I

    return-void
.end method

.method static synthetic a(Lcom/baidu/location/aj;I)I
    .locals 0

    iput p1, p0, Lcom/baidu/location/aj;->ai:I

    return p1
.end method

.method static synthetic a()J
    .locals 2

    sget-wide v0, Lcom/baidu/location/aj;->ae:J

    return-wide v0
.end method

.method static synthetic a(Lcom/baidu/location/aj;)Lcom/baidu/location/aj$a;
    .locals 1

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    return-object v0
.end method

.method private a(Landroid/telephony/CellLocation;)V
    .locals 10

    const/4 v3, 0x0

    const v9, 0x7fffffff

    const/4 v8, 0x3

    const/4 v4, 0x0

    if-eqz p1, :cond_0

    iget-object v1, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-boolean v1, Lcom/baidu/location/aj;->ag:Z

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    invoke-virtual {v1}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lcom/baidu/location/aj;->V:Ljava/lang/String;

    invoke-direct {p0}, Lcom/baidu/location/aj;->d()Z

    move-result v1

    sput-boolean v1, Lcom/baidu/location/aj;->ag:Z

    :cond_2
    new-instance v5, Lcom/baidu/location/aj$a;

    invoke-direct {v5, p0}, Lcom/baidu/location/aj$a;-><init>(Lcom/baidu/location/aj;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iput-wide v1, v5, Lcom/baidu/location/aj$a;->if:J

    :try_start_0
    iget-object v1, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    invoke-virtual {v1}, Landroid/telephony/TelephonyManager;->getNetworkOperator()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_7

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_7

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v1

    if-lt v1, v8, :cond_4

    const/4 v1, 0x0

    const/4 v6, 0x3

    invoke-virtual {v2, v1, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-gez v1, :cond_3

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->byte:I

    :cond_3
    iput v1, v5, Lcom/baidu/location/aj$a;->byte:I

    :cond_4
    const/4 v1, 0x3

    invoke-virtual {v2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_14

    invoke-virtual {v2}, Ljava/lang/String;->toCharArray()[C

    move-result-object v6

    move v1, v4

    :goto_1
    array-length v7, v6

    if-ge v1, v7, :cond_5

    aget-char v7, v6, v1

    invoke-static {v7}, Ljava/lang/Character;->isDigit(C)Z

    move-result v7

    if-nez v7, :cond_d

    :cond_5
    :goto_2
    const/4 v6, 0x0

    invoke-virtual {v2, v6, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-gez v1, :cond_6

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->case:I

    :cond_6
    iput v1, v5, Lcom/baidu/location/aj$a;->case:I

    :cond_7
    iget-object v1, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    invoke-virtual {v1}, Landroid/telephony/TelephonyManager;->getSimState()I

    move-result v1

    iput v1, p0, Lcom/baidu/location/aj;->ai:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_3
    instance-of v1, p1, Landroid/telephony/gsm/GsmCellLocation;

    if-eqz v1, :cond_e

    move-object v1, p1

    check-cast v1, Landroid/telephony/gsm/GsmCellLocation;

    invoke-virtual {v1}, Landroid/telephony/gsm/GsmCellLocation;->getLac()I

    move-result v1

    iput v1, v5, Lcom/baidu/location/aj$a;->a:I

    check-cast p1, Landroid/telephony/gsm/GsmCellLocation;

    invoke-virtual {p1}, Landroid/telephony/gsm/GsmCellLocation;->getCid()I

    move-result v1

    iput v1, v5, Lcom/baidu/location/aj$a;->for:I

    const/16 v1, 0x67

    iput-char v1, v5, Lcom/baidu/location/aj$a;->new:C

    :cond_8
    :goto_4
    invoke-virtual {v5}, Lcom/baidu/location/aj$a;->a()Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    if-eqz v1, :cond_9

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-virtual {v1, v5}, Lcom/baidu/location/aj$a;->a(Lcom/baidu/location/aj$a;)Z

    move-result v1

    if-nez v1, :cond_0

    :cond_9
    iput-object v5, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-virtual {v5}, Lcom/baidu/location/aj$a;->a()Z

    move-result v1

    if-eqz v1, :cond_13

    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    if-nez v1, :cond_a

    new-instance v1, Ljava/util/LinkedList;

    invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V

    iput-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    :cond_a
    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-nez v1, :cond_12

    move-object v1, v3

    :goto_5
    if-eqz v1, :cond_b

    iget v2, v1, Lcom/baidu/location/aj$a;->for:I

    iget-object v3, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v3, v3, Lcom/baidu/location/aj$a;->for:I

    if-ne v2, v3, :cond_b

    iget v2, v1, Lcom/baidu/location/aj$a;->a:I

    iget-object v3, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v3, v3, Lcom/baidu/location/aj$a;->a:I

    if-eq v2, v3, :cond_0

    :cond_b
    if-eqz v1, :cond_c

    iget-object v2, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-wide v2, v2, Lcom/baidu/location/aj$a;->if:J

    iget-wide v5, v1, Lcom/baidu/location/aj$a;->if:J

    sub-long/2addr v2, v5

    iput-wide v2, v1, Lcom/baidu/location/aj$a;->if:J

    :cond_c
    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    iget-object v2, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-direct {p0}, Lcom/baidu/location/aj;->c()V

    iput-boolean v4, p0, Lcom/baidu/location/aj;->ah:Z

    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    sget v2, Lcom/baidu/location/aj;->af:I

    if-le v1, v2, :cond_0

    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v1, v4}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_0

    :cond_d
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1

    :catch_0
    move-exception v1

    const/4 v1, 0x1

    iput v1, p0, Lcom/baidu/location/aj;->aj:I

    goto/16 :goto_3

    :cond_e
    instance-of v1, p1, Landroid/telephony/cdma/CdmaCellLocation;

    if-eqz v1, :cond_8

    const/16 v1, 0x63

    iput-char v1, v5, Lcom/baidu/location/aj$a;->new:C

    sget-object v1, Landroid/os/Build$VERSION;->SDK:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x5

    if-lt v1, v2, :cond_0

    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    if-nez v1, :cond_f

    :try_start_1
    const-string v1, "android.telephony.cdma.CdmaCellLocation"

    invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v1

    sput-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    const-string v2, "getBaseStationId"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v1, v2, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    sput-object v1, Lcom/baidu/location/aj;->Y:Ljava/lang/reflect/Method;

    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    const-string v2, "getNetworkId"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v1, v2, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    sput-object v1, Lcom/baidu/location/aj;->Z:Ljava/lang/reflect/Method;

    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    const-string v2, "getSystemId"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v1, v2, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    sput-object v1, Lcom/baidu/location/aj;->aa:Ljava/lang/reflect/Method;

    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    const-string v2, "getBaseStationLatitude"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v1, v2, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    sput-object v1, Lcom/baidu/location/aj;->ab:Ljava/lang/reflect/Method;

    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    const-string v2, "getBaseStationLongitude"

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Class;

    invoke-virtual {v1, v2, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    sput-object v1, Lcom/baidu/location/aj;->ac:Ljava/lang/reflect/Method;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    :cond_f
    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    if-eqz v1, :cond_8

    sget-object v1, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    invoke-virtual {v1, p1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_8

    :try_start_2
    sget-object v1, Lcom/baidu/location/aj;->aa:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-gez v1, :cond_10

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->case:I

    :cond_10
    iput v1, v5, Lcom/baidu/location/aj$a;->case:I

    sget-object v1, Lcom/baidu/location/aj;->Y:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    iput v1, v5, Lcom/baidu/location/aj$a;->for:I

    sget-object v1, Lcom/baidu/location/aj;->Z:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    iput v1, v5, Lcom/baidu/location/aj$a;->a:I

    sget-object v1, Lcom/baidu/location/aj;->ab:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    move-object v0, v2

    check-cast v0, Ljava/lang/Integer;

    move-object v1, v0

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ge v1, v9, :cond_11

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v1

    iput v1, v5, Lcom/baidu/location/aj$a;->char:I

    :cond_11
    sget-object v1, Lcom/baidu/location/aj;->ac:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    move-object v0, v2

    check-cast v0, Ljava/lang/Integer;

    move-object v1, v0

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ge v1, v9, :cond_8

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v1

    iput v1, v5, Lcom/baidu/location/aj$a;->do:I
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_4

    :catch_1
    move-exception v1

    iput v8, p0, Lcom/baidu/location/aj;->aj:I

    goto/16 :goto_0

    :catch_2
    move-exception v1

    sput-object v3, Lcom/baidu/location/aj;->ad:Ljava/lang/Class;

    const/4 v1, 0x2

    iput v1, p0, Lcom/baidu/location/aj;->aj:I

    goto/16 :goto_0

    :cond_12
    iget-object v2, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    add-int/lit8 v1, v1, -0x1

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/baidu/location/aj$a;

    goto/16 :goto_5

    :cond_13
    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    goto/16 :goto_0

    :cond_14
    move v1, v4

    goto/16 :goto_2
.end method

.method static synthetic a(Lcom/baidu/location/aj;Landroid/telephony/CellLocation;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/baidu/location/aj;->a(Landroid/telephony/CellLocation;)V

    return-void
.end method

.method public static au()Lcom/baidu/location/aj;
    .locals 1

    sget-object v0, Lcom/baidu/location/aj;->a:Lcom/baidu/location/aj;

    if-nez v0, :cond_0

    new-instance v0, Lcom/baidu/location/aj;

    invoke-direct {v0}, Lcom/baidu/location/aj;-><init>()V

    sput-object v0, Lcom/baidu/location/aj;->a:Lcom/baidu/location/aj;

    :cond_0
    sget-object v0, Lcom/baidu/location/aj;->a:Lcom/baidu/location/aj;

    return-object v0
.end method

.method static synthetic b(Lcom/baidu/location/aj;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    return-object v0
.end method

.method private b()V
    .locals 15

    const-wide/16 v13, 0x0

    const/4 v12, 0x1

    const/4 v7, 0x0

    invoke-static {}, Lcom/baidu/location/J;->goto()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "lcvif.dat"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    :try_start_0
    new-instance v9, Ljava/io/RandomAccessFile;

    const-string v0, "rw"

    invoke-direct {v9, v1, v0}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V

    const-wide/16 v0, 0x0

    invoke-virtual {v9, v0, v1}, Ljava/io/RandomAccessFile;->seek(J)V

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readLong()J

    move-result-wide v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sub-long v0, v2, v0

    const-wide/32 v2, 0xea60

    cmp-long v0, v0, v2

    if-lez v0, :cond_2

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->close()V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0

    :cond_2
    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readInt()I

    move v8, v7

    :goto_1
    const/4 v0, 0x3

    if-ge v8, v0, :cond_6

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readLong()J

    move-result-wide v10

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readInt()I

    move-result v4

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readInt()I

    move-result v5

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readInt()I

    move-result v2

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readInt()I

    move-result v3

    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->readInt()I

    move-result v0

    if-ne v0, v12, :cond_7

    const/16 v6, 0x67

    :goto_2
    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    const/16 v6, 0x63

    :cond_3
    cmp-long v0, v10, v13

    if-nez v0, :cond_5

    :cond_4
    :goto_3
    add-int/lit8 v0, v8, 0x1

    move v8, v0

    goto :goto_1

    :cond_5
    new-instance v0, Lcom/baidu/location/aj$a;

    move-object v1, p0

    invoke-direct/range {v0 .. v6}, Lcom/baidu/location/aj$a;-><init>(Lcom/baidu/location/aj;IIIIC)V

    iput-wide v10, v0, Lcom/baidu/location/aj$a;->if:J

    invoke-virtual {v0}, Lcom/baidu/location/aj$a;->a()Z

    move-result v1

    if-eqz v1, :cond_4

    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/baidu/location/aj;->ah:Z

    iget-object v1, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3

    :cond_6
    invoke-virtual {v9}, Ljava/io/RandomAccessFile;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :cond_7
    move v6, v7

    goto :goto_2
.end method

.method static synthetic c(Lcom/baidu/location/aj;)I
    .locals 1

    iget v0, p0, Lcom/baidu/location/aj;->ai:I

    return v0
.end method

.method private c()V
    .locals 9

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    if-eqz v0, :cond_2

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    iget-object v2, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_2
    invoke-static {}, Lcom/baidu/location/J;->goto()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, "lcvif.dat"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    :try_start_0
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_7

    invoke-virtual {v2}, Ljava/io/File;->createNewFile()Z

    new-instance v4, Ljava/io/RandomAccessFile;

    const-string v0, "rw"

    invoke-direct {v4, v2, v0}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V

    const-wide/16 v5, 0x0

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->seek(J)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    add-int/lit8 v2, v3, -0x1

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-wide v5, v0, Lcom/baidu/location/aj$a;->if:J

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->writeLong(J)V

    invoke-virtual {v4, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    move v0, v1

    :goto_1
    rsub-int/lit8 v2, v3, 0x3

    if-ge v0, v2, :cond_3

    const-wide/16 v5, 0x0

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->writeLong(J)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, 0x2

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_3
    :goto_2
    if-ge v1, v3, :cond_6

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-wide v5, v0, Lcom/baidu/location/aj$a;->if:J

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->writeLong(J)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->byte:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->case:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->a:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->for:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-char v0, v0, Lcom/baidu/location/aj$a;->new:C

    const/16 v2, 0x67

    if-ne v0, v2, :cond_4

    const/4 v0, 0x1

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    :goto_3
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    :cond_4
    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-char v0, v0, Lcom/baidu/location/aj$a;->new:C

    const/16 v2, 0x63

    if-ne v0, v2, :cond_5

    const/4 v0, 0x2

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    goto :goto_3

    :catch_0
    move-exception v0

    goto/16 :goto_0

    :cond_5
    const/4 v0, 0x3

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    goto :goto_3

    :cond_6
    invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V

    goto/16 :goto_0

    :cond_7
    new-instance v4, Ljava/io/RandomAccessFile;

    const-string v0, "rw"

    invoke-direct {v4, v2, v0}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V

    const-wide/16 v5, 0x0

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->seek(J)V

    invoke-virtual {v4}, Ljava/io/RandomAccessFile;->readLong()J

    move-result-wide v5

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    add-int/lit8 v2, v3, -0x1

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-wide v7, v0, Lcom/baidu/location/aj$a;->if:J

    cmp-long v0, v5, v7

    if-ltz v0, :cond_8

    invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V

    goto/16 :goto_0

    :cond_8
    const-wide/16 v5, 0x0

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->seek(J)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    add-int/lit8 v2, v3, -0x1

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-wide v5, v0, Lcom/baidu/location/aj$a;->if:J

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->writeLong(J)V

    invoke-virtual {v4, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    move v0, v1

    :goto_4
    rsub-int/lit8 v2, v3, 0x3

    if-ge v0, v2, :cond_9

    const-wide/16 v5, 0x0

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->writeLong(J)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, -0x1

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, 0x2

    invoke-virtual {v4, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_4

    :cond_9
    :goto_5
    if-ge v1, v3, :cond_c

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-wide v5, v0, Lcom/baidu/location/aj$a;->if:J

    invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->writeLong(J)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->byte:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->case:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->a:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget v0, v0, Lcom/baidu/location/aj$a;->for:I

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-char v0, v0, Lcom/baidu/location/aj$a;->new:C

    const/16 v2, 0x67

    if-ne v0, v2, :cond_a

    const/4 v0, 0x1

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    :goto_6
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_5

    :cond_a
    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/location/aj$a;

    iget-char v0, v0, Lcom/baidu/location/aj$a;->new:C

    const/16 v2, 0x63

    if-ne v0, v2, :cond_b

    const/4 v0, 0x2

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    goto :goto_6

    :cond_b
    const/4 v0, 0x3

    invoke-virtual {v4, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    goto :goto_6

    :cond_c
    invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0
.end method

.method static synthetic d(Lcom/baidu/location/aj;)I
    .locals 1

    iget v0, p0, Lcom/baidu/location/aj;->aj:I

    return v0
.end method

.method private d()Z
    .locals 6

    const/16 v5, 0xa

    const/4 v0, 0x0

    sget-object v1, Lcom/baidu/location/aj;->V:Ljava/lang/String;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/baidu/location/aj;->V:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-ge v1, v5, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    :try_start_0
    sget-object v1, Lcom/baidu/location/aj;->V:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->toCharArray()[C

    move-result-object v2

    move v1, v0

    :goto_1
    if-ge v1, v5, :cond_2

    aget-char v3, v2, v1

    const/16 v4, 0x39

    if-gt v3, v4, :cond_0

    aget-char v3, v2, v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/16 v4, 0x30

    if-lt v3, v4, :cond_0

    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_2
    const/4 v0, 0x1

    goto :goto_0

    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method static synthetic e(Lcom/baidu/location/aj;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/baidu/location/aj;->ah:Z

    return v0
.end method

.method static synthetic f(Lcom/baidu/location/aj;)Landroid/telephony/TelephonyManager;
    .locals 1

    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    return-object v0
.end method


# virtual methods
.method public aq()I
    .locals 1

    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getNetworkType()I

    move-result v0

    goto :goto_0
.end method

.method public declared-synchronized as()V
    .locals 3

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/baidu/location/aj;->X:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v0, :cond_0

    :goto_0
    monitor-exit p0

    return-void

    :cond_0
    :try_start_1
    iget-object v0, p0, Lcom/baidu/location/aj;->W:Lcom/baidu/location/aj$b;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    iget-object v1, p0, Lcom/baidu/location/aj;->W:Lcom/baidu/location/aj$b;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/telephony/TelephonyManager;->listen(Landroid/telephony/PhoneStateListener;I)V

    :cond_1
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/baidu/location/aj;->W:Lcom/baidu/location/aj$b;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    iget-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    invoke-direct {p0}, Lcom/baidu/location/aj;->c()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/baidu/location/aj;->X:Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public at()Lcom/baidu/location/aj$a;
    .locals 9

    const-wide/32 v7, 0xea60

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-virtual {v0}, Lcom/baidu/location/aj$a;->if()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-virtual {v0}, Lcom/baidu/location/aj$a;->a()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    if-eqz v0, :cond_1

    :try_start_0
    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getCellLocation()Landroid/telephony/CellLocation;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/baidu/location/aj;->a(Landroid/telephony/CellLocation;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-virtual {v0}, Lcom/baidu/location/aj$a;->new()Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    new-instance v0, Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v2, v1, Lcom/baidu/location/aj$a;->a:I

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v3, v1, Lcom/baidu/location/aj$a;->for:I

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v4, v1, Lcom/baidu/location/aj$a;->byte:I

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget v5, v1, Lcom/baidu/location/aj$a;->case:I

    iget-object v1, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-char v6, v1, Lcom/baidu/location/aj$a;->new:C

    move-object v1, p0

    invoke-direct/range {v0 .. v6}, Lcom/baidu/location/aj$a;-><init>(Lcom/baidu/location/aj;IIIIC)V

    iput-object v0, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    :cond_2
    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-virtual {v0}, Lcom/baidu/location/aj$a;->do()Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    if-eqz v0, :cond_4

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-object v2, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget-wide v2, v2, Lcom/baidu/location/aj$a;->if:J

    sub-long/2addr v0, v2

    cmp-long v0, v0, v7

    if-gez v0, :cond_4

    invoke-static {}, Lcom/baidu/location/ao;->bc()Lcom/baidu/location/ao;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/location/ao;->aZ()Z

    move-result v0

    if-nez v0, :cond_4

    invoke-static {}, Lcom/baidu/location/B;->cc()Lcom/baidu/location/B;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/location/B;->b7()Lcom/baidu/location/B$b;

    move-result-object v0

    if-eqz v0, :cond_3

    invoke-static {}, Lcom/baidu/location/B;->cc()Lcom/baidu/location/B;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/location/B;->b7()Lcom/baidu/location/B$b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/location/B$b;->try()I

    move-result v0

    const/4 v1, 0x2

    if-ge v0, v1, :cond_4

    :cond_3
    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->for:I

    iput v1, v0, Lcom/baidu/location/aj$a;->for:I

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->case:I

    iput v1, v0, Lcom/baidu/location/aj$a;->case:I

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->byte:I

    iput v1, v0, Lcom/baidu/location/aj$a;->byte:I

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->a:I

    iput v1, v0, Lcom/baidu/location/aj$a;->a:I

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget-wide v1, v1, Lcom/baidu/location/aj$a;->if:J

    iput-wide v1, v0, Lcom/baidu/location/aj$a;->if:J

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget-char v1, v1, Lcom/baidu/location/aj$a;->new:C

    iput-char v1, v0, Lcom/baidu/location/aj$a;->new:C

    :cond_4
    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    invoke-virtual {v0}, Lcom/baidu/location/aj$a;->byte()Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    if-eqz v0, :cond_5

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-object v2, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget-wide v2, v2, Lcom/baidu/location/aj$a;->if:J

    sub-long/2addr v0, v2

    cmp-long v0, v0, v7

    if-gez v0, :cond_5

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->case:I

    iput v1, v0, Lcom/baidu/location/aj$a;->case:I

    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    iget-object v1, p0, Lcom/baidu/location/aj;->T:Lcom/baidu/location/aj$a;

    iget v1, v1, Lcom/baidu/location/aj$a;->byte:I

    iput v1, v0, Lcom/baidu/location/aj$a;->byte:I

    :cond_5
    iget-object v0, p0, Lcom/baidu/location/aj;->S:Lcom/baidu/location/aj$a;

    return-object v0

    :catch_0
    move-exception v0

    goto/16 :goto_0
.end method

.method public aw()Ljava/lang/String;
    .locals 1

    sget-object v0, Lcom/baidu/location/aj;->V:Ljava/lang/String;

    return-object v0
.end method

.method public declared-synchronized ax()V
    .locals 3

    const/4 v1, 0x1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/baidu/location/aj;->X:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-ne v0, v1, :cond_1

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_1
    sget-boolean v0, Lcom/baidu/location/m;->gP:Z

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/baidu/location/f;->getServiceContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "phone"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    iput-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/baidu/location/aj;->U:Ljava/util/List;

    new-instance v0, Lcom/baidu/location/aj$b;

    invoke-direct {v0, p0}, Lcom/baidu/location/aj$b;-><init>(Lcom/baidu/location/aj;)V

    iput-object v0, p0, Lcom/baidu/location/aj;->W:Lcom/baidu/location/aj$b;

    invoke-direct {p0}, Lcom/baidu/location/aj;->b()V

    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/baidu/location/aj;->W:Lcom/baidu/location/aj$b;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v0, :cond_0

    :try_start_2
    iget-object v0, p0, Lcom/baidu/location/aj;->R:Landroid/telephony/TelephonyManager;

    iget-object v1, p0, Lcom/baidu/location/aj;->W:Lcom/baidu/location/aj$b;

    const/16 v2, 0x110

    invoke-virtual {v0, v1, v2}, Landroid/telephony/TelephonyManager;->listen(Landroid/telephony/PhoneStateListener;I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_1
    :try_start_3
    invoke-direct {p0}, Lcom/baidu/location/aj;->d()Z

    move-result v0

    sput-boolean v0, Lcom/baidu/location/aj;->ag:Z

    const-string v0, "baidu_location_service"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "i:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sget-object v2, Lcom/baidu/location/aj;->V:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/location/J;->if(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/baidu/location/aj;->X:Z
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public az()I
    .locals 2

    invoke-static {}, Lcom/baidu/location/f;->getServiceContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "phone"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getSubscriberId()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3

    const-string v1, "46000"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "46002"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "46007"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const-string v1, "46001"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const/4 v0, 0x2

    goto :goto_0

    :cond_2
    const-string v1, "46003"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x3

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    goto :goto_0
.end method
